package com.ksana.context.test.bean;

import com.ksana.bean.factory.BeanClassLoaderAware;
import com.ksana.bean.factory.BeanFactory;
import com.ksana.bean.factory.BeanFactoryAware;
import com.ksana.bean.factory.BeanNameAware;
import com.ksana.context.ApplicationContext;
import com.ksana.context.ApplicationContextAware;

public class MyAware implements BeanNameAware, BeanFactoryAware, BeanClassLoaderAware, ApplicationContextAware {
    @Override
    public void setBeanClassLoader(ClassLoader classLoader) {
        System.out.println(classLoader);
    }

    @Override
    public void setBeanFactory(BeanFactory beanFactory) {
        System.out.println(beanFactory);
    }

    @Override
    public void setBeanName(String name) {
        System.out.println(name);
    }

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) {
        System.out.println(applicationContext);
    }
}
